package com.miyu.common;

import com.miyu.common.utils.baseDao.MiyuRepositoryFactoryBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

//启动自管理jpa 管理处理 两种方式 1 启动类 2，dao调用时
@EnableJpaRepositories(repositoryFactoryBeanClass = MiyuRepositoryFactoryBean.class)
@SpringBootApplication
public class CommonApplication {

    public static void main(String[] args) {
        SpringApplication.run(CommonApplication.class, args);
    }




}
